import logging
class LogUtils:
    @staticmethod
    def logger():
        logger = logging.getLogger('MyLogger')
        logger.setLevel(logging.DEBUG)
        handler = logging.StreamHandler()  # 使用标准输出
        formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
        handler.setFormatter(formatter)
        logger.addHandler(handler)
        return logger